/* 
 * File:   Circle.cpp
 * Author: lucia
 * 
 * Created on 19 de octubre de 2014, 20:04
 */

#include "Circle.h"

Circle::Circle(struct ObjectInit data, SDL_Renderer *render, int pixelWidth, int pixelHeight, int unitWidth, int unitHeight) {

//    this->data = data;
//    SkinFactory *skinFactory = new SkinFactory(render,pixelWidth, pixelHeight,  unitWidth, unitHeight);
//    this->skin = skinFactory;
//    Dot *dot = new Dot(data.x,data.y,data.width,data.height);  
//    this->dot = dot;

}

void Circle::draw(){
//    SBSLog* myLogFile;
//    myLogFile->getInstance(MY_LOG_MODE);

//    Object *obj = this->object;
//
//    float posX = obj->getBody()->GetPosition().x;
//    float posY = obj->getBody()->GetPosition().y;
    
//    printf("inicia draw circulo\n");
//    this->dot->setPos(data.x,data.y);  
//    
//    Uint8 r, g, b, a;
//    r = 0xAA;
//    g = 0xBB; 
//    b = 0xAA;
//    a = 0xFF;
//    
//    bool ok = this->skin->makeCircle(this->dot->dotWorldToPixels(), this->data.scale, this->data.rot, r, g, b, a);

//    if (!ok){
//        myLogFile->writeInLog(1, "[1] Ha ocurrido un error mientras se intentaba dibujar el rectangulo\n");                    
//    }

}

Circle::~Circle() {
//    cout<<"Destructor Drawable"<<endl;
}

